## Process this file with automake to produce Makefile.in

SUBDIRS = src 

MAINTAINERCLEANFILES = \
Makefile.in \
aclocal.m4 \
config.guess \
config.h.in \
config.sub \
configure \
install-sh \
ltconfig \
ltmain.sh \
missing mkinstalldirs \
stamp-h.in \
build-stamp \
configure-stamp \
depcomp \
cmaid.pc \
cmaid_docs.tar.gz

EXTRA_DIST = \
AUTHORS \
COPYING \
COPYING-PLAIN \
gendoc \
Doxyfile \
README \
cmaid.pc 

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = cmaid.pc
ACLOCAL_AMFLAGS = -I m4

if CMAID_ENABLE_GCOV
lcov-reset:
	@rm -rf lcov
	@find . -name "*.gcda" -exec rm {} \;
	@lcov --directory . --zerocounters

lcov-report:
	@mkdir lcov
	@lcov --compat-libtool --directory . --capture --output-file lcov/lcov.info
	@lcov -l lcov/lcov.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d: -f1 > lcov/remove
	@lcov -r lcov/lcov.info `cat lcov/remove` > lcov/lcov.cleaned.info
	@rm lcov/remove
	@mv lcov/lcov.cleaned.info lcov/lcov.info
	@genhtml -t "$(PACKAGE_STRING)" -o lcov lcov/lcov.info

lcov:
	@make lcov-reset
	@cmaid_gtests
	@make lcov-report

clean-local:
	@rm -rf lcov
else
lcov-reset:
	@echo "reconfigure with --enable-gcov"

lcov-report:
	@echo "reconfigure with --enable-gcov"

lcov:
	@echo "reconfigure with --enable-gcov"
endif
